import Vue from "vue";
import { Popup, NavBar, Button, Icon, Toast } from "vant";
import { Col, Row } from "vant";
import { Cell, CellGroup, Field, List, SwipeCell} from "vant";
import { Sticky } from 'vant';

Vue.use(Sticky);
Vue.use(Popup);
Vue.use(NavBar);
Vue.use(Button);
Vue.use(Icon);
Vue.use(Toast);
Vue.use(Col);
Vue.use(Row);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Field);
Vue.use(List);
Vue.use(SwipeCell);

// 将所有 Toast 的展示时长设置为 2500 毫秒
Toast.setDefaultOptions({ duration: 3500 });
// 将所有 loading Toast 设置为背景不可点击
Toast.setDefaultOptions("loading", { forbidClick: true });
